package com.tyk.bookstore.front.member.model.query;

import com.tyk.bookstore.front.common.core.model.constant.ValidateConstant;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;


@Data
public class PwdFindQuery {

    @Schema(description = "主体[账号/邮箱/手机号](needed since v2)")
    // @NotBlank
    private String principal;

    @Schema(description = "密码")
    @NotBlank
    @Size(min = ValidateConstant.PASSWORD_MIN_LENGTH, max = ValidateConstant.PASSWORD_MAX_LENGTH)
    @Pattern(regexp = ValidateConstant.PASSWORD_REGEXP)
    private String password;

    @Schema(description = "消息验证码校验通过凭证")
    @NotBlank
    private String verifyCode;

}
